<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Cadastro de Noticias</title>
</head>
<body marginwidth="100px">
<div id="tudo" align="left">
	
   
  <hr/> 

<f:view>  
  <h:form>
    <fieldset>
    <legend>Cadastro de Noticia</legend>
    <h:panelGrid columns="2">
    
     <h:outputLabel value="Titulo:" for="titulo"/>
     <h:inputText id="titulo" label="Titulo" value="#{noticiaBean.titulo}" required="true"/>
     <h:outputLabel value="Descricao:" for="descricao"/>
    <h:inputTextarea id="mensagem" cols="50" rows="5" value="#{noticiaBean.descricao}" style="overflow:scroll;"/>
          
     <h:commandButton action="#{noticiaBean.salvar}" value="Salvar"/>
     
    </h:panelGrid>
  </fieldset>
   </h:form>
</f:view>
<hr/>
</div>
</body>
</html>